package org.ihelpuoo.orm.objs;

public class Property extends One
{
	private String	value;
	private int		personId;
	private Person	_p;

	public Property()
	{
		super();
	}

	public Property(Person p, String name, String value)
	{
		this.setName(name);
		this.setValue(value);
		_p = p;
	}

	public String getValue()
	{
		return value;
	}

	public void setValue(String value)
	{
		this.value = value;
	}

	public int getPersonId()
	{
		if (null != _p)
			return _p.getId();
		return personId;
	}

	public void setPersonId(int personId)
	{
		this.personId = personId;
	}

}
